class AppConfig {
  final String appName;
  final String version;
  final String buildNumber;
  final String environment;
  // final String apiBaseUrl;
  // final String webSocketUrl;
  // final String theme;
  // final String initialRoute;
  // final bool isDebugMode;

  const AppConfig({
    required this.appName,
    required this.version,
    required this.buildNumber,
    required this.environment,
    // required this.apiBaseUrl,
    // required this.webSocketUrl,
    // required this.theme,
    // required this.initialRoute,
    // required this.isDebugMode,
  });
}

// 定义 AppStartRepository 抽象类
abstract class AppStartRepository<T> {
  Future<T> load();
}

class AppConfigRepository implements AppStartRepository<AppConfig> {
  const AppConfigRepository();

  @override
  Future<AppConfig> load() async {
    // 模拟加载配置，通常这里可以从文件或远程接口获取配置
    // await Future.delayed(const Duration(milliseconds: 500)); // 模拟延迟
    return const AppConfig(
      appName: "MyApp",
      version: "1.0.0",
      buildNumber: "100",
      environment: "debug",
      // apiBaseUrl: "https://api.example.com",
      // webSocketUrl: "wss://ws.example.com",
      // theme: "light",
      // initialRoute: "/home",
      // isDebugMode: false,
    );
  }
}


